<template>
  <div class="notFoundPage flex-center">
    <div class="flex">
      <div class="image">
        <img src="@/assets/images/404.png" alt="404"></img>
      </div>
      <div class="flex-center flex-column">
        <div class="tips theme-color">页面丢失了!</div>
        <div class="btn-group">
          <el-button @click="back"  type="primary" round>返回首页</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>

const back = () => {
  window.history.go(-1)
  // if (login) {
  //   router.push('/')
  // } else {
  //   router.push('/login')
  // }
}
</script>
<style lang="scss" scoped>
.notFoundPage {
  height: 100Vh;
  .image {
    width: 600px;
    height: 340px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .tips {
    font-size: 28px;
    font-weight: bold;
    line-height: 40px;
    margin-bottom: 20px;
  }
}
</style>
